﻿using BootstrapBlazor.Components;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TrackSystem.Entities.Dtos.Logic;
using TrackSystem.Entities.Dtos.Loop;
using TrackSystem.Entities.Dtos.Sensor;

namespace TrackSystem.Entities.Dtos.Equip
{
    public class EquipWithSensorsDto : EquipDto
    {
        /// <summary>
        /// 传感器列表
        /// </summary>
        [Display(Name = "传感器")]
        [AutoGenerateColumn(Order = 200)]
        public List<SensorDto> Sensors { get; set; } = new();

        [Display(Name ="逻辑表达式")]
        [AutoGenerateColumn(Order =300)]
        public List<LogicForUpdateDto> Logics { get; set; } = new();

        [Display(Name = "控制回路")]
        [AutoGenerateColumn(Order = 400)]
        public List<LoopForUpdateDto> Loops { get; set; } = new();
    }
}
